package cn.iocoder.devlop.module.annual.report.impconf.service;

import cn.iocoder.devlop.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.devlop.module.annual.report.impconf.dal.ImpConfMapper;
import cn.iocoder.devlop.module.annual.report.impconf.dal.dataobject.ImpConfDO;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.List;

/**
 * 导入配置 Service 实现类
 *
 * @author 超级管理员
 */
@Service
@Validated
public class ImpConfServiceImpl implements ImpConfService {

    @Resource
    private ImpConfMapper impConfMapper;


    @Override
    public List<ImpConfDO> selectByEnttype(String enttype) {

        LambdaQueryWrapperX<ImpConfDO> wrapperX = new LambdaQueryWrapperX<>();
//        wrapperX.like(ImpConfDO::getEnttype,enttype);
        return impConfMapper.selectList(wrapperX);
    }

    @Override
    public List<ImpConfDO> selectAll() {
        return impConfMapper.selectList();
    }
}
